package net.csdn.business.kanban.common.constant;

import com.google.common.collect.Maps;

import java.util.Map;

/**
 * @ClassName RedisConstants
 * @Description 缓存配置类
 * @Author zhangyl
 * @Date 2023/8/2 18:18
 */
public class RedisConstants {
    /**
     * key 过期时间配置 单位 秒
     */
    private static final Map<String, Integer> KEY_TO_TIMEOUT = Maps.newHashMap();

    public static final String SEP = "::";
    public static final String UNDERLINE = "_";
    public static final String STRIKE = "-";

    public static final String KANBAN = "kanban";
    // 初始化map
    static {
        KEY_TO_TIMEOUT.put(KANBAN, 1*60);
    }

    public static Map<String, Integer> getKeyToTimeout() {
        return KEY_TO_TIMEOUT;
    }
}